package org.db.createdao;


/**
 * 
 * <p>Title: DatabaseUser   </p>
 * <p>Description:基础DAO类</p>
 * <p>Copyright: Copyright (c) 2012</p>
 * <p>Company: prd</p>
 * <p>Create Date/Time: 2014年8月13日 下午8:59:15<p>
 * @author porridge
 * @version 1.0
 * @url www.prdblog.com
 *
 */
public class DatabaseUser  implements Cloneable{
	public DatabaseUser copy(){
		try {
			return (DatabaseUser)this.clone();
		} catch (CloneNotSupportedException e) {
			return null;
		}
	}
	/**
	 * 地址
	 */
	private String url;
	/**
	 * 用户名
	 */
	private String userName;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 端口
	 */
	private String port;
	/**
	 * 查询的数据库名称
	 */
	private String database="";
	/**
	 * 数据库类型
	 */
	private String datacls;
	/**
	 * 是否显示数据库创建代码
	 */
	private String showsql;
	private String link;
	
	private String jdbcFirst;

	private int initialPoolSize;//初始化连接数
	private int maxPoolSize;//最大连接数
	private int minPoolSize;//允许最小连接数
	private int maxIdleTime;//时间,多少秒后未使用连接将自动被丢弃
	private int numHelperThreads;//定义多少个线程开启conn
	

	public String getJdbcFirst() {
		return jdbcFirst;
	}

	public void setJdbcFirst(String jdbcFirst) {
		this.jdbcFirst = jdbcFirst;
	}

	public int getInitialPoolSize() {
		return initialPoolSize;
	}

	public void setInitialPoolSize(int initialPoolSize) {
		this.initialPoolSize = initialPoolSize;
	}

	public int getMaxPoolSize() {
		return maxPoolSize;
	}

	public void setMaxPoolSize(int maxPoolSize) {
		this.maxPoolSize = maxPoolSize;
	}

	public int getMinPoolSize() {
		return minPoolSize;
	}

	public void setMinPoolSize(int minPoolSize) {
		this.minPoolSize = minPoolSize;
	}

	public int getMaxIdleTime() {
		return maxIdleTime;
	}

	public void setMaxIdleTime(int maxIdleTime) {
		this.maxIdleTime = maxIdleTime;
	}

	public int getNumHelperThreads() {
		return numHelperThreads;
	}

	public void setNumHelperThreads(int numHelperThreads) {
		this.numHelperThreads = numHelperThreads;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getShowsql() {
		return showsql;
	}

	public void setShowsql(String showsql) {
		this.showsql = showsql;
	}

	public String getDatacls() {
		return datacls;
	}

	public void setDatacls(String datacls) {
		this.datacls = datacls;
	}

	public String getDatabase() {
		return database;
	}
	public void setDatabase(String database) {
		this.database = database;
	}

	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPort() {
		return port;
	}
	public void setPort(String port) {
		this.port = port;
	}
}
